package cn.iocoder.yudao.module.system.controller.admin.docs.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 知识库文档新增/修改 Request VO")
@Data
public class DocsSaveReqVO {

    @Schema(description = "文档编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8172")
    private Long id;

    @Schema(description = "所属知识库", requiredMode = Schema.RequiredMode.REQUIRED, example = "3991")
    @NotNull(message = "所属知识库不能为空")
    private Long groupId;

    @Schema(description = "文档标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "文档标题不能为空")
    private String name;

    @Schema(description = "特殊场景编码")
    private String sceneCode;

    @Schema(description = "文档内容")
    private String content;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序不能为空")
    private Integer sort;

}